package com.auxgroup.smarthome.enterprise.vo;

import com.auxgroup.smarthome.basebean.Trend;

/**
 * Created by kevinchen on 2017/3/13.
 * 用户分析概览
 */
public class DeviceUserAnalyzeOverviewVo {

    /** 用户总数 */
    private DeviceAllUserAndActiveUserTotalCount allUserStatus;

    /** 用户增长率 */
    private DeviceUserIncreaseAndActiveRate userIncreaseRateStatus;

    /**活跃用户数*/
    private DeviceAllUserAndActiveUserTotalCount activeUserStatus;

    /**用户活跃度*/
    private DeviceUserIncreaseAndActiveRate userActiveRateStatus;


    public static class DeviceAllUserAndActiveUserTotalCount{
        /**今日用户总数（活跃用户数）*/
        private int todayTotal;
        /** 相较昨日用户总数（活跃用户数）的趋势（上升还是下降）*/
        private Trend trend;
        /**相叫昨日变化的数量*/
        private int changeNum;

        public DeviceAllUserAndActiveUserTotalCount(int todayTotal, Trend trend, int changeNum) {
            this.todayTotal = todayTotal;
            this.trend = trend;
            this.changeNum = changeNum;
        }

        public int getTodayTotal() {
            return todayTotal;
        }

        public void setTodayTotal(int todayTotal) {
            this.todayTotal = todayTotal;
        }

        public Trend getTrend() {
            return trend;
        }

        public void setTrend(Trend trend) {
            this.trend = trend;
        }

        public int getChangeNum() {
            return changeNum;
        }

        public void setChangeNum(int changeNum) {
            this.changeNum = changeNum;
        }
    }

    public static class DeviceUserIncreaseAndActiveRate{
        /**今日用户增长率（活跃度）*/
        private double todayIncreaseRate;
        /**相较昨日用户增长率（活跃度）的趋势（上升还是下降）*/
        private Trend trend;
        /**相较昨日用户增长率（活跃度）的变化数量*/
        private double changeNum;

        public DeviceUserIncreaseAndActiveRate(double todayIncreaseRate, Trend trend, double changeNum) {
            this.todayIncreaseRate = todayIncreaseRate;
            this.trend = trend;
            this.changeNum = changeNum;
        }

        public double getTodayIncreaseRate() {
            return todayIncreaseRate;
        }

        public void setTodayIncreaseRate(double todayIncreaseRate) {
            this.todayIncreaseRate = todayIncreaseRate;
        }

        public Trend getTrend() {
            return trend;
        }

        public void setTrend(Trend trend) {
            this.trend = trend;
        }

        public double getChangeNum() {
            return changeNum;
        }

        public void setChangeNum(double changeNum) {
            this.changeNum = changeNum;
        }
    }

    public DeviceAllUserAndActiveUserTotalCount getAllUserStatus() {
        return allUserStatus;
    }

    public void setAllUserStatus(DeviceAllUserAndActiveUserTotalCount allUserStatus) {
        this.allUserStatus = allUserStatus;
    }

    public DeviceUserIncreaseAndActiveRate getUserIncreaseRateStatus() {
        return userIncreaseRateStatus;
    }

    public void setUserIncreaseRateStatus(DeviceUserIncreaseAndActiveRate userIncreaseRateStatus) {
        this.userIncreaseRateStatus = userIncreaseRateStatus;
    }

    public DeviceAllUserAndActiveUserTotalCount getActiveUserStatus() {
        return activeUserStatus;
    }

    public void setActiveUserStatus(DeviceAllUserAndActiveUserTotalCount activeUserStatus) {
        this.activeUserStatus = activeUserStatus;
    }

    public DeviceUserIncreaseAndActiveRate getUserActiveRateStatus() {
        return userActiveRateStatus;
    }

    public void setUserActiveRateStatus(DeviceUserIncreaseAndActiveRate userActiveRateStatus) {
        this.userActiveRateStatus = userActiveRateStatus;
    }
}
